package com.gemini.collect.constraint;

import java.util.Collection;
import java.util.Map;

public abstract class ListMultimap<K, V> implements Multimap<K, V> {

    protected transient Map<K, Collection<V>> entity;

    public ListMultimap(Map<K, Collection<V>> entity) {
        this.entity = entity;
    }

    public abstract Collection<V> createCollection();

    @Override
    public String toString() {
        return entity.toString();
    }
}
